package applications.callcost;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class BootStarter extends BroadcastReceiver {
	 
	 public void onReceive(Context context, Intent intent) {
		 try {
	         Intent svc = new Intent(context, CallListenerService.class);
	         context.startService(svc);
	     }
	     catch (Exception e) {
	    	 Toast toast = Toast.makeText(context, "error loading monitoring service", Toast.LENGTH_LONG);
		     toast.show();
	     }
	 }
	 
}